package com.example.assignment7.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper=false)
public class Product implements Serializable {
    private static final long serialVersionUID=1L;

    @TableId(value="id",type=IdType.AUTO)
    private Long id;

    private String category;

    private String description;

    private String name;

    private Float price;

    @TableField(value="product_type")
    private String productType;

    @TableField(value="stock_quantity")
    private Float stockQuantity;

    @TableField(exist=false)
    private List<Supplier> supplierList=new ArrayList<>();


}
